
<?php

require_once($INCLUDE_PATH.'app/controller/InitController.php');
//require_once ($INCLUDE_PATH . "/inc/checkfun.php");
//require_once ($INCLUDE_PATH . "/include/checklogin.php");
//require_once ($INCLUDE_PATH . "/include/WebService2Db.php");
function __autoload($class_name) {
    require_once APP_ROOT.'app/model/'.strtolower($class_name) . '.php';
}
class GetpicController extends InitController {

    public function __construct() {
        parent::__construct();

    }

	public function look() {
		$url = $_REQUEST['u'];
		header("Content-type: image/jpeg");
		$filename=$url;
		$fp=fopen($filename,"rb");
		$pic1=fread($fp,filesize($filename));
		fclose($fp);
		$pictrue=hex2bin($pic1);
		echo $pictrue;
	}
}

?>

